package cn.fyl.basic.util;

import ch.qos.logback.core.pattern.color.MagentaCompositeConverter;
import lombok.Data;

@Data
public class JsonResult {

    private Boolean success = true;
    private String msg = "操作成功";

    private Object resultObj;

    public static JsonResult me(){
        return new JsonResult();
    }

    public JsonResult setMsg(String msg) {
        this.success = false;
        this.msg = msg;
        return this;
    }
    public JsonResult setResultObj(Object msg) {

        this.resultObj = msg;
        return this;
    }
}
